<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Title</title>

    <link href="../../easyui/themes/default/easyui.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="../../easyui/themes/icon.css"/>

    <script src="../../easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>

    <script src="../../js/common/constant.js" type="text/javascript"></script>
    <script src="../../js/common/common.js" type="text/javascript"></script>
    <script src="../../js/emenu/Init.js" type="text/javascript"></script>
    <script src="../../js/emenu/Add.js" type="text/javascript"></script>
    <script src="../../js/emenu/cancel.js" type="text/javascript"></script>
    <script src="../../js/emenu/Update.js" type="text/javascript"></script>

</head>
<body class="easyui-layout">

<!--菜单列表-->
<div region="center" style="padding: 5px;" border="false">
    <table id="menugrid">
    </table>
</div>

<!--添加菜单信息-->
<div id="menuadd" class="easyui-window" title="添加菜单信息"
     data-options="modal:true,inline:true,closed:true,minimizable:false,maximizable:false,iconCls:'icon-add'"
     style="width:400px;height:350px;padding:10px;">
    <form id="form1">
        <div style="padding: 15px 10px 10px 25px;">

            <table style="text-align: center; width: auto" cellpadding="2px">
                <tr>
                    <td>
                        节点:
                    </td>
                    <td>
                        <input style="width: 250px;"
                               class="easyui-textbox" type="text" data-options="required:true"
                               name="CascadeId_add" id="CascadeId_add"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        菜单名称:
                    </td>
                    <td>
                        <input style="width: 250px;" class="easyui-textbox" type="text"
                               data-options="required:true" name="MenuName_add" id="MenuName_add"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        图标:
                    </td>
                    <td>
                        <input style="width: 250px;" class="easyui-textbox" type="text"
                               data-options="required:true"
                               name="Icon_add" id="Icon_add"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Url:
                    </td>
                    <td>
                        <input class="easyui-textbox" data-options="required:true"
                               style=" width:250px;" name="Url_add" id="Url_add">
                    </td>
                </tr>
                <tr>
                    <td>
                        父节点:
                    </td>
                    <td>
                        <input class="easyui-textbox" data-options="required:true"
                               style=" width:250px;" name="ParentId_add" id="ParentId_add">
                    </td>
                </tr>
            </table>
        </div>
        <div style="text-align: center; padding: 5px 5px 10px 10px">

            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:menusubmitForm()" id="submit"
               iconcls="icon-save">添加</a> <a href="javascript:void(0)" class="easyui-linkbutton"
                                             onclick="javascript:menucancel()"
                                             iconcls="icon-cancel">返回</a>

        </div>
    </form>
</div>

<!--更新菜单信息-->
<div id="menuedit" class="easyui-window" title="修改菜单信息"
     data-options="modal:true,inline:true,closed:true,minimizable:false,maximizable:false,iconCls:'icon-save'"
     style="width:400px;height:350px;padding:10px;">
    <form id="form2">
        <div style="padding: 15px 10px 10px 25px;">
            <input style="width: 250px; display:none" class="easyui-validatebox" type="text"
                   data-options="required:true"
                   name="Idedit" id="Idedit"/>
            <table style="text-align: center; width: auto" cellpadding="2px">
                <tr>
                    <td>
                        节点:
                    </td>
                    <td>
                        <input style="width: 250px;"
                               class="easyui-textbox" type="text" data-options="required:true"
                               name="CascadeIdedit" id="CascadeIdedit"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        菜单名称:
                    </td>
                    <td>
                        <input style="width: 250px;" class="easyui-textbox" type="text"
                               data-options="required:true" name="MenuNameedit" id="MenuNameedit"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        图标:
                    </td>
                    <td>
                        <input style="width: 250px;" class="easyui-textbox" type="text"
                               data-options="required:true"
                               name="Iconedit" id="Iconedit"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Url:
                    </td>
                    <td>
                        <input class="easyui-textbox" data-options="required:true"
                               style=" width:250px;" name="Urledit" id="Urledit">
                    </td>
                </tr>
                <tr>
                    <td>
                        父节点:
                    </td>
                    <td>
                        <input class="easyui-textbox" data-options="required:true"
                               style=" width:250px;" name="ParentIdedit" id="ParentIdedit">
                    </td>
                </tr>
            </table>
        </div>
        <div style="text-align: center; padding: 5px 5px 10px 10px">

            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:menueditForm()" id="edit"
               iconcls="icon-save">修改</a> <a href="javascript:void(0)" class="easyui-linkbutton"
                                             onclick="javascript:menucancel()"
                                             iconcls="icon-cancel">返回</a>

        </div>
    </form>
</div>

<!--权限分配-->
<div id="doPermissionAssignment" class="easyui-window" title="权限分配"
     data-options="modal:true,inline:true,closed:true,minimizable:false,maximizable:false,iconCls:'icon-save'"
     style="width:380px;height:180px;padding:10px;">
    <form id="form3">
        <div style="padding: 15px 10px 10px 25px;">
            <table style="text-align: center; width: auto" cellpadding="2px">
                <tr>
                    <td>
                        角色:
                    </td>
                    <td>
                        <input id="rolename" class="easyui-combogrid" style="width:230px">
                    </td>
                </tr>
            </table>
        </div>
        <div style="text-align: center; padding: 5px 5px 10px 10px">

            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:doPermissionAssignment()" id="Assignment"
               iconcls="icon-save">分配</a> <a href="javascript:void(0)" class="easyui-linkbutton"
                                             onclick="javascript:menucancel()"
                                             iconcls="icon-cancel">返回</a>

        </div>
    </form>
</div>

<!--工具栏-->
<div id="tb" style="padding:5px;height:auto">
    <div style="margin-bottom:5px">
        <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="doAdd()">添加</a>
        <a href="#" class="easyui-linkbutton" iconCls="icon-save" plain="true" onclick="doUpdate()">修改</a>
        <a href="#" class="easyui-linkbutton" iconCls="icon-cut" plain="true" onclick="doDelete()">删除</a>
        <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doPermission()">权限分配</a>
    </div>
    <div>
        菜单名称:<input id="bmenuname" class="easyui-textbox" style="width:90px">
        <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="doSearch()">查询</a>
    </div>
   <!-- <div>
        角色:<input id="rolename" class="easyui-combogrid" style="width:110px">
        <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="doPermissionAssignment()">权限分配</a>
    </div>-->
</div>

</body>
</html>